package com.jiang.daily.Q3021;

/**
 * @author Jiang
 * @version 1.0
 * @date 2025/08/29 10:07
 */
class Solution {
    public long flowerGame(int n, int m) {
        long oddN = n / 2 + n % 2;
        long evenN = n / 2;
        long oddM = m / 2 + m % 2;
        long evenM = m / 2;
        long res = oddN * evenM + evenN * oddM;
        return res;
    }
}
